﻿using System;

namespace System
{
   /// <summary>
   /// 配置文件操作类
   /// </summary>
    public class CConfig
    {       
        /// <summary>
        /// 根据名称获取AppSettings的配置节数据。
        /// </summary>
        /// <param name="configKeyName">AppSettings配置节名称</param>
        /// <returns>对应AppSettings的配置节数据</returns>
        public static string ReadAppSettings(string configKeyName)
        {
            return System.Configuration.ConfigurationManager.AppSettings[configKeyName].ToString();
        }
    }
}
